<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtDialog Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_dialog-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtDialog Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="qqtdialog_8h_source.html">qqtdialog.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QQtDialog:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_dialog.png" usemap="#QQtDialog_map" alt=""/>
  <map id="QQtDialog_map" name="QQtDialog_map">
<area href="class_q_qt_msg_box.html" title="The QQtMsgBox class. " alt="QQtMsgBox" shape="rect" coords="0,112,139,136"/>
<area href="class_q_qt_password_dialog.html" alt="QQtPasswordDialog" shape="rect" coords="149,112,288,136"/>
<area href="class_q_qt_progress_dialog.html" alt="QQtProgressDialog" shape="rect" coords="298,112,437,136"/>
<area href="class_q_qt_virtual_click_dialog.html" alt="QQtVirtualClickDialog" shape="rect" coords="447,112,586,136"/>
<area href="class_q_qt_click_dialog.html" alt="QQtClickDialog" shape="rect" coords="298,168,437,192"/>
<area href="class_q_qt_double_click_dialog.html" alt="QQtDoubleClickDialog" shape="rect" coords="447,168,586,192"/>
<area href="class_q_qt_long_click_dialog.html" alt="QQtLongClickDialog" shape="rect" coords="596,168,735,192"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a00b7022121843af66df90371b9317412"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412">ImageStyle</a> { <br />
&#160;&#160;<a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412ae861c4431ada9691dad3eb7bdd101e18">QQTCENTER</a>, 
<a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412a9a4ea72f0126e0d8ae1d218187c61d19">QQTTILEDWIDTH</a>, 
<b>QQTTILEDHEIGHT</b>, 
<b>QQTTILED</b>, 
<br />
&#160;&#160;<a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412a97f7df5dae9533703745de33ea35efb6">QQTZOOMWIDTH</a>, 
<b>QQTZOOMHEIGHT</b>, 
<b>QQTZOOM</b>, 
<a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412ae0e28380d32c14e40028c6b5c76f2361">QQTZOOMWIDTH_KEEPASPECTRATIO</a>, 
<br />
&#160;&#160;<b>QQTZOOMHEIGHT_KEEPASPECTRATIO</b>, 
<b>QQTZOOM_KEEPASPECTRATIO</b>, 
<b>QQTIMAGESTYLEMAX</b>
<br />
 }</td></tr>
<tr class="separator:a00b7022121843af66df90371b9317412"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5e0de83916d7f093b3f341659473a53b"><td class="memItemLeft" align="right" valign="top"><a id="a5e0de83916d7f093b3f341659473a53b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtDialog</b> (QWidget *parent=0)</td></tr>
<tr class="separator:a5e0de83916d7f093b3f341659473a53b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a05dc162c599b20f183a56517b2b280"><td class="memItemLeft" align="right" valign="top"><a id="a5a05dc162c599b20f183a56517b2b280"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setImageStyle</b> (<a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412">ImageStyle</a> style=<a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412ae861c4431ada9691dad3eb7bdd101e18">QQTCENTER</a>)</td></tr>
<tr class="separator:a5a05dc162c599b20f183a56517b2b280"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af168b1be3c0bd5684f3347807989129f"><td class="memItemLeft" align="right" valign="top"><a id="af168b1be3c0bd5684f3347807989129f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setPixmap</b> (const QString &amp;pic=QString())</td></tr>
<tr class="separator:af168b1be3c0bd5684f3347807989129f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc48d665b0ba2577e120453e95dd1e98"><td class="memItemLeft" align="right" valign="top"><a id="adc48d665b0ba2577e120453e95dd1e98"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setPixmap</b> (const QPixmap &amp;pixmap)</td></tr>
<tr class="separator:adc48d665b0ba2577e120453e95dd1e98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6a79cfd128314fa5361c2162056a8f2"><td class="memItemLeft" align="right" valign="top"><a id="af6a79cfd128314fa5361c2162056a8f2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setPixmap</b> (const QImage &amp;image)</td></tr>
<tr class="separator:af6a79cfd128314fa5361c2162056a8f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a9d4b5c8f382b9861516ac9ec22017719"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_dialog.html#a9d4b5c8f382b9861516ac9ec22017719">paintEvent</a> (QPaintEvent *) override</td></tr>
<tr class="separator:a9d4b5c8f382b9861516ac9ec22017719"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>QSS美化，和QQtDialog图片背景不能共存. QSS部分影响QQtWidget，比如Size等 </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a00b7022121843af66df90371b9317412"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00b7022121843af66df90371b9317412">&#9670;&nbsp;</a></span>ImageStyle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_q_qt_dialog.html#a00b7022121843af66df90371b9317412">QQtDialog::ImageStyle</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a00b7022121843af66df90371b9317412ae861c4431ada9691dad3eb7bdd101e18"></a>QQTCENTER&#160;</td><td class="fielddoc"><p>整个居中,全面缩放显示 </p>
</td></tr>
<tr><td class="fieldname"><a id="a00b7022121843af66df90371b9317412a9a4ea72f0126e0d8ae1d218187c61d19"></a>QQTTILEDWIDTH&#160;</td><td class="fielddoc"><p>切 从左上 会产生label的效果，左右按照rect长，但是不缩放形状 </p>
</td></tr>
<tr><td class="fieldname"><a id="a00b7022121843af66df90371b9317412a97f7df5dae9533703745de33ea35efb6"></a>QQTZOOMWIDTH&#160;</td><td class="fielddoc"><p>缩放 忽略长宽比 </p>
</td></tr>
<tr><td class="fieldname"><a id="a00b7022121843af66df90371b9317412ae0e28380d32c14e40028c6b5c76f2361"></a>QQTZOOMWIDTH_KEEPASPECTRATIO&#160;</td><td class="fielddoc"><p>缩放 保持长宽比 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9d4b5c8f382b9861516ac9ec22017719"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d4b5c8f382b9861516ac9ec22017719">&#9670;&nbsp;</a></span>paintEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QQtDialog::paintEvent </td>
          <td>(</td>
          <td class="paramtype">QPaintEvent *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>要达到居中的目标，QImage需要做的size判断很繁复，这里使用QIcon做一些中间转换的后续转换，可以很容易的达到绘制合理大小的pixmap的目的。 source: pixmap file image QImage 输入、输出两侧是pixmap 借助(+QIcon) QIcon 输入、输出两侧也是pixmap dest: 所需要的、合理大小的pixmap</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/frame/<a class="el" href="qqtdialog_8h_source.html">qqtdialog.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/frame/qqtdialog.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
